package org.kevin.service;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @ClassName: HelloService
 * @Description: TODO
 * @Author: kevinHan
 * @Date: 2019/8/25 11:28
 * @Version: 1.0
 */
@Async
@Service
public class HelloService {

//    @Async
    public void hello() {
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("处理数据中....");
    }
}
